home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Prograph Classic 2.6.1 / Prograph Reference Manual / Prograph Reference 5-7 / Prograph Reference 5-7.rsrc / TEXT_154.txt < prev    next >
Encoding:
Text File  |  1995-10-25  |  5.0 KB  |  161 lines

  1.  
  2. Application
  3.  
  4. These primitives manage various interface aspects of the programmer‚Äôs application, specifically menus, windows, window items, and mouse clicks. 
  5.  
  6.  
  7. _________________________________________________
  8.  
  9.                                                                      draw-style-text     *256*
  10.  
  11.  
  12. Input types: string; handle; integer; boolean; rectangle; point
  13.  
  14. Description: Draws styled text in a bounding rectangle. ScrollPoint indicates how far the text is scrolled.
  15.  
  16. _________________________________________________
  17.  
  18.  
  19.                                                                    find-item     *256*
  20.  
  21.  
  22.  
  23. Input types: Window | Menu ;  string  |  integer
  24.  
  25. Output types: integer | string ;  Window item | Menu item
  26.  
  27. Description:  If ItemName is given, searches attribute item list of aWindow or aMenu for the first ¬´Window Item¬ª or ¬´Menu Item¬ª whose name matches ItemName.  Returns FoundIndex and FoundItem, or 0 and NULL if the item is not found.  If ItemIndex (position within item list) is given, returns FoundName and FoundItem.
  28.  
  29. Example:
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. See also:  find-menu, find-menu-a, find-window, find-window-a
  40.  
  41.  
  42. _________________________________________________
  43.  
  44.                                                                               find-menu     *257*
  45.  
  46.  
  47.  
  48. Input types: Application;  string  |  integer
  49.  
  50. Output types: integer | string ;  Menu | null
  51.  
  52. Description:     If MenuName is given, searches attribute menu lib of anApplication for the first ¬´Menu¬ª with name MenuName. Returns FoundIndex and FoundMenu, or 0 and NULL if the menu is not found. If MenuIndex (position within menu lib) is given, returns FoundName and FoundMenu. 
  53.  
  54. See also:    find-menu-a, find-window, find-window-a, find-item
  55.  
  56.  
  57. _________________________________________________
  58.  
  59.                                                                                find-menu-a    *257*
  60.  
  61.  
  62.  
  63. Input types: Application;  string  |  integer
  64.  
  65. Output types: integer | string ;  Menu | null
  66.  
  67. Description:     If MenuName is given, searches attribute menus of anApplication for the first ¬´Menu¬ª with name MenuName. Returns FoundIndex and FoundMenu, or 0 and NULL if the menu is not found. If MenuIndex (position within menu) is given, returns FoundName and FoundMenu. 
  68.  
  69. See also:  find-menu, find-window, find-window-a, find-item
  70.  
  71.  
  72. _________________________________________________
  73.  
  74.                                                                  find-window    *258*
  75.  
  76.  
  77.  
  78. Input types: Application;  string  |  integer
  79.  
  80. Output types: integer | string ;  Window | null
  81.  
  82. Description:     If WindowName is given, searches attribute window lib of anApplication for the first ¬´Window¬ª with name WindowName. Returns FoundIndex and FoundWindow, or 0 and NULL if the window is not found. If WindowIndex (position within window lib) is given, returns FoundName and FoundWindow. 
  83.  
  84. See also:  find-window-a, find-menu, find-menu-a, find-item
  85.  
  86.  
  87. _________________________________________________
  88.  
  89.                                                                                       find-window-a    *258*
  90.  
  91.  
  92.  
  93. Input types: Application;  string  |  integer
  94.  
  95. Output types: integer | string ;  Window | null
  96.  
  97. Description:     If WindowName is given, searches attribute windows of anApplication for the first ¬´Window¬ª with name WindowName. Returns FoundIndex and FoundWindow, or 0 and NULL if the window is not found. If WindowIndex (position within window) is given, returns FoundName and FoundWindow. 
  98.  
  99. See also:  find-window, find-menu, find-menu-a, find-item
  100.  
  101.  
  102.  
  103. _________________________________________________
  104.                                             ¬†is-double?     *258*
  105.  
  106.  
  107. Input names: Event
  108.  
  109. Input types: EventRecord
  110.  
  111. Output names: [Result]
  112.  
  113. Output types: [boolean]
  114.  
  115. Description:     Result is TRUE if and only if Event is a click occurring within double-click time of the previous click.
  116.  
  117.  
  118. _________________________________________________
  119.  
  120.                                             is-drag?     *259*
  121.  
  122.  
  123. Input names: Event
  124.  
  125. Input types: EventRecord
  126.  
  127. Output names: [Result]
  128.  
  129. Output types: [boolean]
  130.  
  131. Description:     Result is TRUE if and only if Event is a click, the mouse is still down, and the current cursor position is different from that recorded in Event.
  132.  
  133.  
  134. _________________________________________________
  135.  
  136.                                                                                       popup-menu    *259*
  137.  
  138.  
  139.  
  140. Input types: list; integer; point; integer; integer; boolean
  141.  
  142. Output type: list
  143.  
  144. Description: Displays a popup menu using the current font and color. MenuList contains the menu title and item strings. Nested lists form hierarchical menus. MenuID is an integer between 256 and 512. The item Selection is marked with the Mark character. SelectionList will contain the number of the selected item or a list of item numbers for hierarchical menus.
  145.  
  146.  
  147.  
  148. _________________________________________________
  149.                                            ¬†wait-double?    *259*
  150.  
  151.  
  152. Input names: Event
  153.  
  154. Input types: EventRecord
  155.  
  156. Output names: [Result]
  157.  
  158. Output types: [boolean]
  159.  
  160. Description:     Result is TRUE if and only if Event is a click and another click occurs within double-click time of it. 
  161.